#include "Graphics/VertexDeclaration.h"



namespace tyro
{
	namespace Graphics
	{


		VertexDeclaration::VertexDeclaration()
		{

		}

		const VertexElement& VertexDeclaration::AddElement( UINT_32 source, size_t offset, VertexElementType type, VertexElementSemantic semantic, UINT index /*= 0 */ )
		{
			elementList.push_back(VertexElement(source, offset, type, semantic, index));
			return elementList.back();
		}

		const VertexDeclaration::VertexElementList& VertexDeclaration::GetElements( void ) const
		{
			return elementList;
		}


		

	}
}